package top.lishuoboy.boot09profile.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/**
 * @author lishuoboy
 * @date 2022/2/28 10:48
 */
@Data
@Component
@ConfigurationProperties("car")
// @Profile条件装配功能，只装配test profile，找不到无法@Autoware
@Profile("test")
public class Car {
    private String name;
}
